# 列表生成式
# print(type([x * 2 for x in range(1, 11)]))

# 生成器
# print(type((x * 2 for x in range(1, 11))))


# c = (x * 2 for x in range(1, 3))
# print(next(c))
# print(next(c))
# print(next(c))
# print(next(c))


c=(x * 2 for x in range(1,3))
for i in c:
    print(i)
